/* pages/InterviewResult/style.css */
.interview-result {
    min-height: 100vh;
    background: linear-gradient(135deg, #f0f8ff 0%, #e6f3ff 100%);
    padding: 2rem;
  }
  
  /* 加载状态 */
  .interview-result.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  }
  
  .loading-container {
    text-align: center;
    color: white;
    max-width: 500px;
  }
  
  .analysis-animation {
    margin-bottom: 2rem;
    position: relative;
  }
  
  .brain-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: pulse-brain 2s ease-in-out infinite;
  }
  
  @keyframes pulse-brain {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.1); opacity: 1; }
  }
  
  .loading-bars {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-bottom: 2rem;
  }
  
  .bar {
    width: 4px;
    height: 30px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 2px;
    animation: loading-bar 1.5s ease-in-out infinite;
  }
  
  .bar:nth-child(2) { animation-delay: 0.2s; }
  .bar:nth-child(3) { animation-delay: 0.4s; }
  .bar:nth-child(4) { animation-delay: 0.6s; }
  
  @keyframes loading-bar {
    0%, 100% { height: 30px; background: rgba(255, 255, 255, 0.6); }
    50% { height: 50px; background: rgba(255, 255, 255, 1); }
  }
  
  .analysis-steps {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 2rem;
  }
  
  .step {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    border-left: 4px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
  }
  
  .step.active {
    background: rgba(255, 255, 255, 0.2);
    border-left-color: #10b981;
  }
  
  /* 错误状态 */
  .interview-result.error {
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .error-container {
    text-align: center;
    color: #ef4444;
  }
  
  .retry-btn {
    background: #ef4444;
    color: white;
    text-decoration: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    margin-top: 2rem;
    display: inline-block;
    transition: all 0.3s ease;
  }
  
  .retry-btn:hover {
    background: #dc2626;
    transform: translateY(-2px);
  }
  
  /* 主要内容 */
  .result-container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
  }
  
  /* 头部概览 */
  .result-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 3rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
  }
  
  .score-overview {
    display: flex;
    gap: 3rem;
    align-items: center;
    flex: 1;
  }
  
  .overall-score {
    display: flex;
    align-items: center;
    gap: 1.5rem;
  }
  
  .score-circle {
    position: relative;
    width: 120px;
    height: 120px;
  }
  
  .score-ring {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
  }
  
  .score-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
  }
  
  .score-number {
    font-size: 2.5rem;
    font-weight: 800;
    display: block;
  }
  
  .score-label {
    font-size: 0.9rem;
    opacity: 0.8;
  }
  
  .score-info h3 {
    font-size: 1.5rem;
    margin: 0 0 0.5rem 0;
    font-weight: 600;
  }
  
  .score-level {
    font-size: 1.1rem;
    opacity: 0.9;
    margin: 0;
  }
  
  .interview-summary h2 {
    font-size: 2rem;
    margin: 0 0 1.5rem 0;
    font-weight: 700;
  }
  
  .summary-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
  }
  
  .summary-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
  }
  
  .completion-time {
    margin: 0;
    opacity: 0.8;
    font-size: 0.9rem;
  }
  
  .action-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
    min-width: 200px;
  }
  
  .download-btn,
  .restart-btn,
  .home-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
  }
  
  .download-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
  }
  
  .download-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
  }
  
  .restart-btn {
    background: #10b981;
    color: white;
  }
  
  .restart-btn:hover {
    background: #059669;
    transform: translateY(-2px);
  }
  
  .home-btn {
    background: rgba(255, 255, 255, 0.9);
    color: #667eea;
  }
  
  .home-btn:hover {
    background: white;
    transform: translateY(-2px);
  }
  
  /* 标签页导航 */
  .tab-navigation {
    display: flex;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
  }
  
  .tab-btn {
    flex: 1;
    padding: 1.5rem 2rem;
    background: none;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: #64748b;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
  }
  
  .tab-btn:hover {
    background: #f1f5f9;
    color: #475569;
  }
  
  .tab-btn.active {
    background: white;
    color: #667eea;
    border-bottom-color: #667eea;
  }
  
  /* 标签页内容 */
  .tab-content {
    padding: 3rem;
  }
  
  /* 概览标签页 */
  .scores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
  }
  
  .score-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s ease;
  }
  
  .score-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  }
  
  .skill-name {
    font-weight: 600;
    color: #374151;
    margin-bottom: 1rem;
    font-size: 1.1rem;
  }
  
  .skill-score {
    display: flex;
    align-items: center;
    gap: 1rem;
  }
  
  .skill-score .score {
    font-size: 1.5rem;
    font-weight: 700;
    color: #667eea;
    min-width: 50px;
  }
  
  .score-bar {
    flex: 1;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
  }
  
  .score-fill {
    height: 100%;
    border-radius: 4px;
    transition: all 0.6s ease;
  }
  
  .highlights-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  
  .highlights-card,
  .improvements-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 2rem;
  }
  
  .highlights-card {
    border-left: 4px solid #10b981;
  }
  
  .improvements-card {
    border-left: 4px solid #f59e0b;
  }
  
  .highlights-card h4,
  .improvements-card h4 {
    color: #374151;
    margin: 0 0 1.5rem 0;
    font-size: 1.2rem;
  }
  
  .highlights-card ul,
  .improvements-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  
  .highlights-card li,
  .improvements-card li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #e2e8f0;
    color: #6b7280;
    line-height: 1.5;
  }
  
  .highlights-card li:last-child,
  .improvements-card li:last-child {
    border-bottom: none;
  }
  
  /* 情绪分析标签页 */
  .emotion-overview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
  
  .emotion-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
  
  .stat-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
  }
  
  .stat-card h4 {
    color: #6b7280;
    font-size: 0.9rem;
    margin: 0 0 0.5rem 0;
    font-weight: 500;
  }
  
  .stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: #667eea;
  }
  
  .emotion-chart h4 {
    color: #374151;
    margin: 0 0 1.5rem 0;
    font-size: 1.2rem;
  }
  
  .emotion-bars {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  
  .emotion-bar {
    display: grid;
    grid-template-columns: 80px 1fr 60px;
    gap: 1rem;
    align-items: center;
  }
  
  .emotion-label {
    font-weight: 500;
    color: #374151;
    font-size: 0.9rem;
  }
  
  .emotion-progress {
    height: 12px;
    background: #e2e8f0;
    border-radius: 6px;
    overflow: hidden;
  }
  
  .emotion-fill {
    height: 100%;
    border-radius: 6px;
    transition: all 0.6s ease;
  }
  
  .emotion-percentage {
    font-weight: 600;
    color: #6b7280;
    text-align: right;
    font-size: 0.9rem;
  }
  
  /* 详细反馈标签页 */
  .feedback-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
  }
  
  .feedback-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
  }
  
  .feedback-header h4 {
    color: #374151;
    margin: 0;
    font-size: 1.3rem;
  }
  
  .feedback-score {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    color: #374151;
  }
  
  .question-section {
    margin-bottom: 1.5rem;
  }
  
  .question-section h5 {
    color: #6b7280;
    font-size: 0.9rem;
    margin: 0 0 0.5rem 0;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }
  
  .question-section p {
    color: #374151;
    font-size: 1.1rem;
    margin: 0;
    line-height: 1.6;
    font-style: italic;
  }
  
  .feedback-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  
  .feedback-text h5,
  .emotion-feedback h5 {
    color: #6b7280;
    font-size: 0.9rem;
    margin: 0 0 0.75rem 0;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }
  
  .feedback-text p,
  .emotion-feedback p {
    color: #374151;
    margin: 0;
    line-height: 1.6;
  }
  
  /* 响应式设计 */
  @media (max-width: 1024px) {
    .result-header {
      flex-direction: column;
      align-items: stretch;
      gap: 2rem;
    }
    
    .score-overview {
      flex-direction: column;
      gap: 2rem;
    }
    
    .overall-score {
      justify-content: center;
    }
    
    .action-buttons {
      flex-direction: row;
      justify-content: center;
    }
    
    .emotion-overview {
      grid-template-columns: 1fr;
    }
    
    .highlights-section {
      grid-template-columns: 1fr;
    }
    
    .feedback-content {
      grid-template-columns: 1fr;
      gap: 1.5rem;
    }
  }
  
  @media (max-width: 768px) {
    .interview-result {
      padding: 1rem;
    }
    
    .result-header {
      padding: 2rem;
    }
    
    .tab-content {
      padding: 2rem;
    }
    
    .scores-grid {
      grid-template-columns: 1fr;
    }
    
    .emotion-stats {
      grid-template-columns: 1fr;
    }
    
    .summary-grid {
      grid-template-columns: 1fr;
    }
    
    .tab-btn {
      padding: 1rem;
      font-size: 0.9rem;
    }
    
    .action-buttons {
      flex-direction: column;
    }
  }
  
  @media (max-width: 480px) {
    .emotion-bar {
      grid-template-columns: 1fr;
      gap: 0.5rem;
      text-align: center;
    }
    
    .emotion-label {
      order: 1;
    }
    
    .emotion-progress {
      order: 2;
    }
    
    .emotion-percentage {
      order: 3;
      text-align: center;
    }
  }